﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CMS.Core.Types
{
    public class Paging<T>
    {
        /// <summary>
        /// 当前页,从1开始
        /// </summary>
        public int PageIndex { get; set; }

        /// <summary>
        /// 每页记录数。默认20
        /// </summary>
        public int PageSize { get; set; }

        /// <summary>
        /// 总记录数
        /// </summary>
        public int TotalItems;
     
        /// <summary>
        /// 当前页记录列表
        /// </summary>
        public List<T> Items { get; set; }

        public Paging()
        {
            PageIndex = 1;
            PageSize = 20;
        }
    }
}
